<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>计算周长和面积</title>
	<script>
		var long = Number(prompt('输入长'));
		var width= Number(prompt('输入宽'));
		var s=(long+width)*2;
		var area=long*width;
        console.log(s);
         console.log(area);

	</script>
</head>
<body>
	
</body>
</html>